#ifndef AMPLPROGRAM_H
#define AMPLPROGRAM_H

#include <QObject>
#include <QQuickWidget>
#include <QQmlContext>
#include <dbHelper.h>
#include <eqptinfo.h>
#include <CommonHelper.h>

class Amplprogram : public QObject
{
    Q_OBJECT

public:
    Amplprogram();
    ~Amplprogram();

public:
    Q_INVOKABLE  QVariantList getProgramInfo(QString);
    Q_INVOKABLE  int deleteProgramInfo(QString);//0 成功 1失败
    Q_INVOKABLE  int deleteAllProgramInfo();//0 成功 1失败
    Q_INVOKABLE  int setDefaultProgram(QString,QString);//0 成功 1失败
    Q_INVOKABLE  QVariantList getProgramStepInfo(QString,QString);//暂时只返步骤
    Q_INVOKABLE  QString saveProgramInfo(QVariantMap,QVariantList);//1.成功 2.校验失败原因
    Q_INVOKABLE  QString saveProgramInfo_open(QVariantMap,QVariantList);//1.成功 2.校验失败原因
    Q_INVOKABLE  QString checkedProgramInfo(QVariantMap,QVariantList);

private:
     CommonHelper* common;
};

#endif // AMPLPROGRAM_H
